﻿
#region Usings

#endregion

namespace LongNet.Web.Email.MIME
{
    /// <summary>
    /// Media type struct
    /// </summary>
    public struct MediaType
    {
        /// <summary>
        /// Enum associated with the sub type and file extension
        /// </summary>
        public MediaEnum MediaEnum;
        /// <summary>
        /// Sub type
        /// </summary>
        public string SubType;
        /// <summary>
        /// File extension
        /// </summary>
        public string FileExtension;

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="MediaEnum">The media type</param>
        /// <param name="SubType">The sub type</param>
        /// <param name="FileExtension">File extension associated with the media type and sub type</param>
        public MediaType(MediaEnum MediaEnum, string SubType, string FileExtension)
        {
            this.MediaEnum = MediaEnum;
            this.SubType = SubType;
            this.FileExtension = FileExtension;
        }
    }
}